package com.iqiyi.pps.epg.core.model.record;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by karkarrotxu on 2018/4/11.
 */
@Entity
@Table(name = "record_plan")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class RecordPlan {
    public static final int TYPE_CYCLE_TIME = 1;
    public static final int TYPE_ALL_TIME = 2;
    private long id;
    private long channelId;
    private long colId;
    private int planType;
    private String startDate;
    private String stopDate;
    private String startDayTime;
    private String stopDayTime;
    private int enable;
    private int status = 1;
    private int repeatCode;
    private int fragmentOutput;
    private String projectWorkers;
    private int notifyType;
    private Timestamp updateTime;
    private Timestamp createTime;
    private String opUser;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "channel_id")
    public long getChannelId() {
        return channelId;
    }

    public void setChannelId(long channelId) {
        this.channelId = channelId;
    }

    @Column(name = "col_id")
    public long getColId() {
        return colId;
    }

    public void setColId(long colId) {
        this.colId = colId;
    }

    @Column(name = "plan_type")
    public int getPlanType() {
        return planType;
    }

    public void setPlanType(int planType) {
        this.planType = planType;
    }

    @Column(name = "start_date")
    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    @Column(name = "stop_date")
    public String getStopDate() {
        return stopDate;
    }

    public void setStopDate(String stopDate) {
        this.stopDate = stopDate;
    }

    @Column(name = "start_day_time")
    public String getStartDayTime() {
        return startDayTime;
    }

    public void setStartDayTime(String startDayTime) {
        this.startDayTime = startDayTime;
    }

    @Column(name = "stop_day_time")
    public String getStopDayTime() {
        return stopDayTime;
    }

    public void setStopDayTime(String stopDayTime) {
        this.stopDayTime = stopDayTime;
    }

    @Column(name = "enable")
    public int getEnable() {
        return enable;
    }

    public void setEnable(int enable) {
        this.enable = enable;
    }

    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "repeat_code")
    public int getRepeatCode() {
        return repeatCode;
    }

    public void setRepeatCode(int repeatCode) {
        this.repeatCode = repeatCode;
    }

    @Column(name = "fragment_output")
    public int getFragmentOutput() {
        return fragmentOutput;
    }

    public void setFragmentOutput(int fragmentOutput) {
        this.fragmentOutput = fragmentOutput;
    }

    @Column(name = "project_workers")
    public String getProjectWorkers() {
        return projectWorkers;
    }

    public void setProjectWorkers(String projectWorkers) {
        this.projectWorkers = projectWorkers;
    }

    @Column(name = "notify_type")
    public int getNotifyType() {
        return notifyType;
    }

    public void setNotifyType(int notifyType) {
        this.notifyType = notifyType;
    }

    @Column(name = "update_time", insertable = false, updatable = false)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "create_time", updatable = false)
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "op_user")
    public String getOpUser() {
        return opUser;
    }

    public void setOpUser(String opUser) {
        this.opUser = opUser;
    }
}
